﻿

$(function () {
    showData()
})
//查看详情
function showData() {
    // 发送AJAX请求获取数据
    console.log(localStorage.getItem("checkId"))
    $.ajax({
        type: "get",
        url: "/Process/GetFanAllProcess",
        data: {
            processRouteId: localStorage.getItem("checkId"),
            token: localStorage.getItem("token")
        },
        success: function (res) {
            var ter = JSON.parse(res)
            console.log(ter.data)

            $(ter.data).each(function () {
                $('#ProcessNo').val(this.processPouteNumber);
                $('#ProcessRouteName').val(this.processRouteName);
                $("[name='State'][value='" + this.state + "']").prop("checked", true)

                $('#ProductName').val(this.productName);
                $('#CreatedBy').val(this.createdBy);
                $('#CreatedDate').val(this.createdDate.substring(0, 10));
                $('#UpdatedBy').val(this.updatedBy);
                $('#UpdatedDate').val(this.updatedDate);

                //obj.processRouteId = this.processRouteId
                //obj.processPouteNumber = this.processPouteNumber
                //obj.processRouteName = this.processRouteName
                //obj.state = this.state
                //obj.productName = this.productName
                //obj.createdBy = this.createdBy
                //obj.createdDate = this.createdDate
                //obj.updatedBy = this.updatedBy
                //obj.updatedDate = this.updatedDate
            })

        },

    });


}